<p-table [columns]="cols" [value]="scheduleDatas" [(selection)]="selectDeleteItems" [paginator]="true" [rows]="10">
    <ng-template pTemplate="header" let-columns>
        <tr class="ui-state-default">
            <th style="width: 2.25em">
                <p-tableHeaderCheckbox></p-tableHeaderCheckbox>
            </th>
            <th *ngFor="let col of columns" [pSortableColumn]="col.field">
                {{col.header}}
                <p-sortIcon [field]="col.field"></p-sortIcon>
        </tr>
    </ng-template>
    <ng-template pTemplate="body" let-rowData let-columns="columns">
        <tr [pSelectableRow]="rowData" class="ui-state-default">
            <td>
                <p-tableCheckbox [value]="rowData"></p-tableCheckbox>
            </td>
            <td>{{rowData['sid']}}</td>
            <td>{{rowData['workorder_label']}}</td>
            <td>{{rowData['title']}}</td>
            <td>{{rowData['status']}}</td>
        </tr>
    </ng-template>
</p-table>